package com.orong.entity;

import java.io.File;
import java.util.ArrayList;

import org.apache.http.message.BasicNameValuePair;

import android.content.Context;

/**
 * @Title: UpLoadDatas.java
 * @Description: 封装上传图片（文件）所需要的数据
 * @author lanhaizhong
 * @date 2013年8月26日 上午11:47:27
 * @version V1.0 Copyright (c) 2013 Company,Inc. All Rights Reserved.
 * 
 */
public class UpLoadDatas {
	private String url;// 上传图片的路径
	private File imageFile;
	private Context context;
	private ArrayList<BasicNameValuePair> paramList; // 传递参数

	public UpLoadDatas() {
		super();
		// TODO Auto-generated constructor stub
	}

	public UpLoadDatas(String url, File imageFile, Context context) {
		super();
		this.url = url;
		this.imageFile = imageFile;
		this.context = context;
		paramList = new ArrayList<BasicNameValuePair>();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public File getImageFile() {
		return imageFile;
	}

	public void setImageFile(File imageFile) {
		this.imageFile = imageFile;
	}

	public ArrayList<BasicNameValuePair> getParamList() {
		return paramList;
	}

	public void setParamList(ArrayList<BasicNameValuePair> paramList) {
		this.paramList = paramList;
	}

	public void putParam(String name, String value) {
		if (paramList == null) {
			paramList = new ArrayList<BasicNameValuePair>();
		}
		paramList.add(new BasicNameValuePair(name, value));
	}
}
